package com.aspose.cells;

class zaiw {
   private zoz a = null;
   private static final com.aspose.cells.b.c.a.za b = new com.aspose.cells.b.c.a.za(new String[]{"Application", "Manager", "Company", "HyperlinkBase", "AppVersion", "DocSecurity", "Template", "Pages", "Words", "Characters", "Lines", "Paragraphs", "TotalTime", "CharactersWithSpaces"});

   zaiw(zoz var1) {
      this.a = var1;
   }

   void a(zcfw var1) throws Exception {
      this.c(var1);
      if (!var1.n()) {
         BuiltInDocumentPropertyCollection var2 = this.a.a.getWorksheets().getBuiltInDocumentProperties();
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               int var3;
               switch(b.a(var1.p())) {
               case 0:
                  var2.setNameOfApplication(var1.i());
                  break;
               case 1:
                  var2.setManager(var1.i());
                  break;
               case 2:
                  var2.setCompany(var1.i());
                  break;
               case 3:
                  var2.setHyperlinkBase(var1.i());
                  break;
               case 4:
                  var2.setVersion(var1.i());
                  break;
               case 5:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.a(var3);
                  }
                  break;
               case 6:
                  var2.setTemplate(var1.i());
                  break;
               case 7:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setPages(var3);
                  }
                  break;
               case 8:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setWords(var3);
                  }
                  break;
               case 9:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setCharacters(var3);
                  }
                  break;
               case 10:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setLines(var3);
                  }
                  break;
               case 11:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setParagraphs(var3);
                  }
                  break;
               case 12:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setTotalEditingTime((double)var3 / 60.0D);
                  }
                  break;
               case 13:
                  var3 = this.b(var1);
                  if (var3 != -1) {
                     var2.setCharactersWithSpaces(var3);
                  }
                  break;
               default:
                  var1.a();
               }
            }
         }

      }
   }

   private int b(zcfw var1) throws Exception {
      boolean var2 = true;
      String var3 = var1.i();

      int var6;
      try {
         var6 = zase.C(var3);
      } catch (Exception var5) {
         var6 = -1;
      }

      return var6;
   }

   private void c(zcfw var1) throws Exception {
      var1.j();
      if (var1.r() != 1 || !"Properties".equals(var1.p())) {
         throw new CellsException(6, "DocPropsApp root element eror");
      }
   }
}
